package com.qdxwx.models.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author developer
 * @description qdx_user_invites
 */
public class UserInvite implements Serializable {

    private static final long serialVersionUID = -7446462725645128767L;

    /** id */
	private Long id;
	/** 邀请人的用户id */
	private Long userId;
	/** 被邀请人用户id */
	private Long inviteUserId;
	/** 返现金额 单位分 */
	private Integer cashback;
	/** 添加时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime addTime;

    /** 被邀请人姓名 */
    private String inviteUserName;
    /** 被邀请人注册来源 */
    private String registerFrom;

    public String getInviteUserName() {
        return inviteUserName;
    }

    public void setInviteUserName(String inviteUserName) {
        this.inviteUserName = inviteUserName;
    }

    public String getRegisterFrom() {
        return registerFrom;
    }

    public void setRegisterFrom(String registerFrom) {
        this.registerFrom = registerFrom;
    }

    public Long getId() {
        return this.id;
    }

    public Long getUserId() {
        return this.userId;
    }

    public Long getInviteUserId() {
        return this.inviteUserId;
    }

    public Integer getCashback() {
        return this.cashback;
    }

    public LocalDateTime getAddTime() {
        return this.addTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setInviteUserId(Long inviteUserId) {
        this.inviteUserId = inviteUserId;
    }

    public void setCashback(Integer cashback) {
        this.cashback = cashback;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        return "UserInvite{" +
                "id=" + id +
                ", userId=" + userId +
                ", inviteUserId=" + inviteUserId +
                ", cashback=" + cashback +
                ", addTime=" + addTime +
                '}';
    }
}

